home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / faq / news / mailpath / part1 < prev   
Internet Message Format  |  1994-03-31  |  8KB

  1. Path: bloom-beacon.mit.edu!hookup!swrinde!cs.utexas.edu!uunet!not-for-mail
  2. From: tale@uunet.uu.net (David C Lawrence)
  3. Newsgroups: news.lists,news.admin.misc,news.answers
  4. Subject: How to Construct the Mailpaths File
  5. Supersedes: <mailpaths_760147870@uunet.uu.net>
  6. Followup-To: news.admin.misc
  7. Date: 1 Apr 1994 02:14:09 -0500
  8. Organization: UUNET Technologies Inc, Falls Church, VA, USA
  9. Lines: 140
  10. Approved: tale@uunet.uu.net
  11. Expires: 31 May 94 19:14:04 GMT
  12. Message-ID: <mailpaths_765184444@uunet.uu.net>
  13. NNTP-Posting-Host: rodan.uu.net
  14. Xref: bloom-beacon.mit.edu news.lists:1054 news.admin.misc:9209 news.answers:17108
  15.  
  16. Archive-name: mailpaths/part1
  17. Original-author: Gene Spafford (spaf@cs.purdue.edu)
  18. Comment: enhanced & edited until 5/93 by spaf@cs.purdue.edu (Gene Spafford)
  19. Last-change: 21 Mar 1994 by tale@uunet.uu.net (David C Lawrence)
  20.  
  21. UNIX News software after B-news version 2.10 -- including C news and INN --
  22. has been designed to make it simpler to submit articles to moderated
  23. newsgroups and to reply via mail to posted articles.  For these
  24. functions to work, the file "mailpaths" must exist in the news library
  25. and contain current information.  This file describes the syntax of
  26. the contents of the file and how to construct it for your B News or C
  27. News system.
  28.  
  29. INN's method is described in the moderators(5) and inn.conf(5) manual
  30. pages; if you do not have locally moderated groups to worry about it
  31. is probably easiest to simply define moderatormailer in inn.conf as
  32. one of the machines listed below.
  33.  
  34. Some systems may not work in precisely the manner described here.  In
  35. particular, some user-agent programs may consult a file of moderator
  36. addresses directly.  The system news administrator should consult the
  37. documentation and man pages to determine if this description applies
  38. to the local configuration and modify it accordiningly.
  39.  
  40. Syntax
  41. ------
  42. All lines in the file consist of a keyword followed by whitespace,
  43. followed by a printf-style format string which is used to encode a mail
  44. address.  The format string should be constructed so that there is a
  45. single "%s" in the field, and other information necessary to construct
  46. a valid address to the appropriate site (see below).
  47.  
  48. The keyword field consists of either the word "internet", the word
  49. "backbone", or some newsgroup pattern.  These are examined by the
  50. software to determine which format-string to use.  Note that the FIRST
  51. appropriate line matched is the one used -- thus, the "backbone"
  52. keyword line should be placed last in the line if regional or local
  53. moderated groups are supported.
  54.  
  55. Also note that the match software quits if it runs out of newsgroup
  56. pattern, and if the pattern present matches the newsgroup.  Thus,
  57. having the entries:
  58.     comp.foo        foo@nowhere.edu
  59.     comp.foo.bar    bar@someplace.org
  60. would always send mail to the moderator of "comp.foo" and not to the
  61. moderator of "comp.foo.bar", no matter which of the two newsgroups was
  62. specified!   For proper operation, you would need to list them thusly:
  63.     comp.foo.bar    bar@someplace.org
  64.     comp.foo        foo@nowhere.edu
  65.  
  66. Addresses that end up with both "!" and "@" symbols in the resulting
  67. address get converted so that only "!" symbols appear in the final
  68. address.  An address of the form "foo!bar!baz@barf" will get converted
  69. to "foo!bar!barf!baz" and then mailed.  This should work properly, for
  70. "dumb" mailers but you should test it to make sure; "smart" mailers
  71. should have the format fields encoded as a simple "%s". Note that *any*
  72. address with more than a single "@" in it is illegal.
  73.  
  74. Submissions to moderated groups
  75. -------------------------------
  76. When you attempt to post to a moderated newsgroup (indicated by the
  77. letter "m" in the 4th field of the "active" file for that group), 
  78. the action of "inews" is to mail the submission to the moderator.
  79. This is done by searching through "mailpaths" file for a keyword
  80. matching the newsgroup being posted to, or, by default, the keyword
  81. "backbone".  Matching occurs as in the "sys" file -- thus,
  82. "world" and "all" will also match everything, while "news" or 
  83. "news.all" will only match articles posted in the "news" category.
  84. This feature can be used to support local moderated groups.
  85.  
  86. Once a line has been matched, the name of the moderated group is
  87. transformed into an address.  This is done by first turning all the
  88. imbedded periods within the newsgroup name into hyphens (e.g.,
  89. "news.lists" becomes "news-lists") because many mailers mishandle
  90. addresses with periods in the username (periods are supposed to be
  91. delimiters only in the host/domain part of RFC822 addresses, but some
  92. mailers "overreact").  Next, the transformed group name is encoded into
  93. an address using the format-string present on the line matched from
  94. "mailpaths" and the article is mailed.  Thus, a posting to "news.lists"
  95. from a site with the line
  96.     backbone        emory!gatech!%s 
  97. in the mailpaths file would have the article mailed to
  98. "emory!gatech!news-lists".  Likewise, a line like
  99.     backbone    %s@gatech.edu
  100. would result in the article being mailed to "news-lists@gatech.edu".
  101. To make the mechanism for moderated postings simpler, a subset of the 
  102. best-connected sites (plus some others) have committed to keeping a complete
  103. up-to-date set of mail aliases for the moderated groups.  Therefore, to
  104. build this line in your "mailpaths" file, you need only construct
  105. an address to get the mail to one of these sites.  In turn, once the
  106. submission reaches that site, it will be forwarded on to the
  107. appropriate moderator's mailbox.
  108.  
  109. The sites currently maintaining these lists are given in the following
  110. list.  Pick the one that is "closest" to your site and use it in your
  111. "backbone" format string:
  112.  
  113.     ames.arc.nasa.gov        beaver.cs.washington.edu  cis.ohio-state.edu
  114.     decwrl.dec.com           linus.mitre.org           math.waterloo.edu
  115.     mcnc.org                 moderators.univ-lyon1.fr  ncar.ucar.edu
  116.     pipex.co.uk              rutgers.edu               tektronix.tek.com
  117.     ucsd.edu                 uunet.uu.net
  118.  
  119. All EUnet customers should use their feeding EUnet news server as
  120. 'backbone' for posts to moderated groups.  For example, German EUnet
  121. customers would use news.germany.eu.net.  Non-EUnet sites in Europe
  122. may forward through pipex.co.uk (aka pipex.net).
  123.  
  124. Internet Mail
  125. -------------
  126. If you define the "INTERNET" flag when you build 2.11 news, the
  127. software will use the internet-style "From:" header when addressing
  128. replies mailed to postings.  If your mailer does not have this capability,
  129. you can still (possibly) achieve the same thing by defining the
  130. "internet" line in your "mailpaths" file to forward such mail to
  131. a host that does have a mailer which understands internet-style addresses.
  132.  
  133. The format of this line is very similar to the "backbone" line.  As an
  134. example, consider:
  135.     internet    emory!gatech!mcnc!%s
  136. Thus, if "INTERNET" was defined when this version of news was built,
  137. any reply to a news article would not travel along the "Path:", but
  138. would instead be sent to "mcnc" for interpretation and remailing.
  139. For example, to reply to this article, the mail would be sent to
  140. "emory!gatech!mcnc!tale@uunet.uu.net"  ->
  141. "emory!gatech!mcnc!uunet.uu.net!tale"
  142.  
  143. Note:  This is being provided as a service to sites which do not
  144. have routing mailers or which have difficulty replying to articles.
  145. It is *NOT* intended for everyone to pass mail to other sites to send.
  146. Excessive use of this feature may result in severe problems for
  147. the sites doing the relaying, so please simply define this field to
  148. be "%s" if your mailer understands domain-style (internet-style)
  149. addressing.
  150.  
  151. The following sites will accept internet-format mail for forwarding:
  152.  
  153.     beaver.cs.washington.edu    decwrl.dec.com  kddlab.kddlabs.co.jp
  154.     math.waterloo.edu           mcnc.org        ucsd.edu
  155.     uunet.uu.net
  156.